import { request } from 'utils/request'
// 获取购物车列表
export const getCartList = () => {
  return request({
    url: '/cart/cartList',
    method: 'get'
  })
}
// 删除购物车的商品
export const deleteCartById = (skuId) => {
  return request({
    url: `/cart/deleteCart/${skuId}`,
    method: 'delete'
  })
}
// 勾选状态的改变
export const changeCheckStatus = (skuId, isChecked) => {
  return request({
    url: `/cart/checkCart/${skuId}/${isChecked}`,
    method: 'get'
  })
}
